package juc.pubsub;

/**
 * @author YangXin
 * @version 1.0
 * @date 2022/3/10 22:21
 */
public class PubSubTest {
    static final Object o = new Object();
    public static void main(String[] args) {

        Producer producer = new Producer(o);
        Consumer consumer = new Consumer(o);
        new Thread(producer,"producer").start();
        new Thread(consumer,"consumer").start();
    }
}
